package ecomm.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.time.LocalDateTime;

@Data
@TableName("t_vehicle")
public class Vehicle {

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    private String vin;
    private Double longitude;
    private Double latitude;
    private Double speed;
    private Double totalMileage;
    private Integer batteryLevel;
    private Integer status;

    private LocalDateTime lastReportTime;
    private LocalDateTime updateTime;

    @Version
    private Integer version;

    @TableLogic
    private Integer deleted; // 1正常 0删除
}